package com.blog.cmrpersonalblog.dto.notification.requset;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * 通知设置更新请求DTO
 */
@Data
public class NotificationSettingsUpdateRequest {

    /**
     * 关注通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer followEnabled;

    /**
     * 点赞通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer likeEnabled;

    /**
     * 评论通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer commentEnabled;

    /**
     * 回复通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer replyEnabled;

    /**
     * @提及通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer mentionEnabled;

    /**
     * 系统通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer systemEnabled;

    /**
     * 收藏通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer collectEnabled;

    /**
     * 免打扰模式 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer doNotDisturbEnabled;

    /**
     * 免打扰开始时间 格式:HH:mm:ss
     */
    private String doNotDisturbStart;

    /**
     * 免打扰结束时间 格式:HH:mm:ss
     */
    private String doNotDisturbEnd;

    /**
     * 通知聚合开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer notificationAggregationEnabled;

    /**
     * WebSocket推送开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer websocketEnabled;

    /**
     * 邮件通知开关 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailNotificationEnabled;

    /**
     * 关注邮件通知 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailFollowEnabled;

    /**
     * 评论邮件通知 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailCommentEnabled;

    /**
     * 回复邮件通知 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailReplyEnabled;

    /**
     * @提及邮件通知 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailMentionEnabled;

    /**
     * 系统邮件通知 0-关闭 1-开启
     */
    @Min(value = 0, message = "开关值必须为0或1")
    @Max(value = 1, message = "开关值必须为0或1")
    private Integer emailSystemEnabled;
}

